package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天文件存储对象 chat_oss
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class ChatOss extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件主键 */
    private Long ossId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 原始文件名 */
    @Excel(name = "原始文件名")
    private String originalName;

    /** 文件后缀名 */
    @Excel(name = "文件后缀名")
    private String fileSuffix;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 存储路径 */
    @Excel(name = "存储路径")
    private String filePath;

    /** 上传用户ID */
    @Excel(name = "上传用户ID")
    private Long uploadUserId;

    public void setOssId(Long ossId) 
    {
        this.ossId = ossId;
    }

    public Long getOssId() 
    {
        return ossId;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setOriginalName(String originalName) 
    {
        this.originalName = originalName;
    }

    public String getOriginalName() 
    {
        return originalName;
    }

    public void setFileSuffix(String fileSuffix) 
    {
        this.fileSuffix = fileSuffix;
    }

    public String getFileSuffix() 
    {
        return fileSuffix;
    }

    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setUploadUserId(Long uploadUserId) 
    {
        this.uploadUserId = uploadUserId;
    }

    public Long getUploadUserId() 
    {
        return uploadUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ossId", getOssId())
            .append("fileName", getFileName())
            .append("originalName", getOriginalName())
            .append("fileSuffix", getFileSuffix())
            .append("fileSize", getFileSize())
            .append("filePath", getFilePath())
            .append("uploadUserId", getUploadUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
